﻿// JSON C# Class Generator
// http://at-my-window.blogspot.com/?page=json-class-generator

using System;
using Newtonsoft.Json.Linq;
using BuscoPre;

namespace BuscoPre.Repository.MLA.JsonTypes
{

    public class Seller
    {

        private JObject __jobject;
        public Seller(JObject obj)
        {
            this.__jobject = obj;
        }

        public int Id
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "id"));
            }
        }

        public string PowerSellerStatus
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "power_seller_status"));
            }
        }

        public bool CarDealer
        {
            get
            {
                return JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken<JValue>(__jobject, "car_dealer"));
            }
        }

        public bool RealEstateAgency
        {
            get
            {
                return JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken<JValue>(__jobject, "real_estate_agency"));
            }
        }

    }
}
